package com.itheima.mapper;

import com.itheima.pojo.Dept;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface Usermapper {
    //查询所有部门信息
    @Select("select * from dept")
    List<Dept> find();
    //根据id删除部门
    @Delete( "delete from dept where id=#{id}")
    int delete(Integer id);
}
